<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>添加新部门</title>
    <%--引入bootstrap样式--%>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <script src="../js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <link href="../css/department.css" rel="stylesheet">
</head>
<body>
<jsp:include page="/branchServlet"></jsp:include>
    <div class="container">
        <div class="row">
            <div class="col-sm-10">
                <div class="heading"><strong>添加新部门</strong></div>
            </div>
        </div>
        <form method="post" action="/departmentServlet">
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">部门名称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="departName" >
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2">选择机构</label>
                <div class="col-sm-8">
                    <select class="form-control" name="branchId">
                        <c:forEach items="${branchList}" var="item">
                            <option value="${item.branchId}">${item.branchName}</option>
                        </c:forEach>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">固定电话</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="tel" >
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">手机号</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="phone" >
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">传真</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="fax" >
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">备注</label>
                <div class="col-sm-8">
                    <textarea class="form-control" aria-label="With textarea" name="remark"></textarea>
                </div>
            </div>
            <div class="form-group row">
                <div class="col-sm-10 center">
                    <button type="submit" class="btn btn-primary">提交</button>
                    <input type="reset" class="btn btn-primary"  value="重置">
                </div>
            </div>
        </form>
    </div>
</body>
</html>
